package com.cdsxt.genCode.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.cdsxt.genCode.service.GenCodeService;
import com.cdsxt.vo.ResponseResultVo;

@Controller
@RequestMapping("/genCode")
public class GenCodeController {

	
	@Autowired
	GenCodeService genCodeService;
	
	/**
	 * 生成单表的模块
	 * @param moduleJsonStr
	 * @return
	 */
	@RequestMapping("/genModuleCode1")
	@ResponseBody
	public ResponseResultVo genModuleCode1(@RequestBody  String moduleJsonStr) {
		//解析json生成代码
		genCodeService.genModuleCodeJson(moduleJsonStr);
		return ResponseResultVo.successResult();
	}
	
}
